<script setup lang="ts" name="Portrait">
interface IProps {
  imgUrl: string;
}

const props = defineProps<IProps>();
</script>

<template>
  <div class="portrait-page">
    <img :src="props.imgUrl" alt="" />
  </div>
</template>

<style lang="scss" scoped>
.portrait-page {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #fff;
  position: relative;

  &::before {
    content: '';
    width: 15px;
    height: 15px;
    z-index: 1;
    display: block;
    border-radius: 50%;
    background-color: rgb(144, 225, 80);
    position: absolute;
    right: 0;
  }

  img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    vertical-align: middle;
  }
}
</style>
